#ifndef _STAT_H_
#define _STAT_H_

#define CPU_MAX     64

typedef union {
    uint64_t value[7];
    struct {
        uint64_t user, nice, system, idle, iowait, irq, softirq;
    };
} cputime_t;

typedef struct {
    cputime_t old;
    float usage;
} cpu_t;


int get_cpu(cpu_t *cpu);


#endif
